//
//  FourthViewController.m
//  TakeHer
//
//  Created by Jupiter on 15/6/10.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "FourthViewController.h"

@interface FourthViewController ()

@end

@implementation FourthViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    UIImageView *userImage = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 375, 300)];
    [userImage setImage:[UIImage imageNamed:@"hand.png"]];
    [self.view addSubview:userImage];
    
//    UIView *cleanView = [[UIView alloc]initWithFrame:CGRectMake(0, 275, 375, 50)];
//    cleanView.backgroundColor = [UIColor yellowColor];
//    [self.view addSubview:cleanView];
//    [cleanView release];
    
    
    
    
    UIImageView *cleanImage = [[UIImageView alloc]initWithFrame:CGRectMake(10, 330, 30, 30)];
    [cleanImage setImage:[UIImage imageNamed:@"clean.png"]];
    [self.view addSubview:cleanImage];
    [cleanImage release];
    UIButton *cleanButton = [UIButton buttonWithType:UIButtonTypeSystem];
    [cleanButton setTitle:@"清除缓存" forState:UIControlStateNormal];
    cleanButton.tintColor = [UIColor blackColor];

    
   // cleanButton.backgroundColor = [UIColor yellowColor];
    cleanButton.frame = CGRectMake(0, 330, 375, 30);
    [self.view addSubview:cleanButton];
    
    [cleanButton addTarget:self action:@selector(clean:) forControlEvents:UIControlEventTouchUpInside];
    
    
}
-(void)clean:(UIButton *)cleanAction
{
    NSLog(@"click");
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
